<%@ taglib uri="/struts-tags" prefix="s"%>
<script src='${WEB_CONTEXT_PATH}/dwr/interface/sysConfigService.js'></script>
<script src='${WEB_CONTEXT_PATH}/dwr/engine.js'></script>
<script src='${WEB_CONTEXT_PATH}/dwr/util.js'></script>

<input type="hidden" name="pageName" id="pageName" value='<%=request.getParameter("pageName") %>'/>
<s:hidden name="nextPage" value="%{nextPage}" id="nextPage"/>
<s:hidden name="prePage" value="%{prePage}" id="prePage"/>
<s:hidden name="returnAbled" id="returnAbled"/>

<script>
function initReturnParam()
{
	var pageName = $('#pageName');
	var nextPage = $('#nextPage');
	var prePage = $('#prePage');
	var returnAbled = $('#returnAbled');
	sysConfigService.returnParamInit(pageName.val(), nextPage.val(), prePage.val(), returnAbled.val(), function(data){
		if(data != null)
		{
			nextPage.val(data.nextPage);
			prePage.val(data.prePage);
			returnAbled.val(data.returnAbled);
		}
	});
}

$(document).ready(function(){
	initReturnParam();
});
</script>